package com.java.demo9;

public class Manager extends Employee {

    private double bonus;

    public Manager(String name, int number, double salary,double bonus) {
        super(name, number, salary);
        this.bonus=bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public void work() {
        System.out.println("我是项目经理");
    }
}
